COM AT+CGEQREQ - Define requested acceptable 3G Quality of service profile
COM V1.1	06.01.2005	T. Kleinmann	started

from attglobals import *

COM <H2>ToDo: Check that this is the right way to test the command </H2>

COM  Activate extended error messages in text mode 
AT+CMEE=2
WAIT FOR OK

COM Define PDP context for template first
ATCMD(1,'AT+CGDCONT=1,"IP","',AccessPointName,'"')
WAIT FOR OK

COM Read CGDCONT
AT+CGDCONT?
WAITFOR (1,'+CGDCONT:')

COM Check CGDSCONT
AT+CGDSCONT=?
WAITFOR (1,'+CGDSCONT:')

COM Activate PDP context 1
AT+CGACT=1,1
WAIT FOR OK

COM Define secondary PDP context
AT+CGDSCONT=2,1
WAIT FOR OK

AT+CGDSCONT?
WAITFOR (1,'+CGDSCONT: 2,1')

COM Test AT+CGEQREQ
AT+CGEQREQ=?
WAIT FOR OK

COM Write AT+CGEQREQ
COM
COM Context Identifier			: 1
COM Traffic Class			: 3 (background)
COM Maximum bitrate UL			: 32kbps
COM Maximum bitrate DL			: 32kbps
COM Guaranteed bitrate UL		: 20 kbps
COM Guaranteed bitrate DL		: 20 kbps
COM Delivery order			: In-sequence delivery - Yes
COM Maximum SDU size			: 10 octets 
COM SDU error ratio			: 0E0 network subscribed value
COM Residual bit error ratio		: 0E0 network subscribed value
COM Delivery of erroneous SDUs		: 1 - Yes
COM Transfer delay			: 100
COm Traffic handling priority		: 3

ATCMD(1,'AT+CGEQREQ=1,3,32,32,20,20,1,10,0E0,0E0,1,100,3')
WAIT FOR OK


COM Read AT+CGEQREQ
AT+CGEQREQ?
WAIT FOR OK

COM Undefine Secondary PDP context
AT+CGDSCONT=2
WAIT FOR OK

COM Deactivate context1
AT+CGACT=0
WAIT FOR OK

AT
WAIT FOR OK


